<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
<div th:fragment="test3">
test3.aaaaa

<div th:text="${bbb}"></div>

</div>
a
b
c
<div th:fragment="test31">
test3.bbbbb
</div>
</body>
</html>